﻿<phone:PhoneApplicationPage 
    x:Class="WeiTalk.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded">
	<phone:PhoneApplicationPage.Resources>
		<Storyboard x:Name="sbTitle">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="TitlePanel">
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.1" Value="-20"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="-10"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.4" Value="0"/>
		        <EasingDoubleKeyFrame KeyTime="0:0:1.5" Value="-5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.6" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			
		</Storyboard>
	</phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" Background="#FF1BA1E2">
        <Grid.RowDefinitions>
            <RowDefinition Height="180"/>
			<RowDefinition Height="30"/>
			<RowDefinition Height="230"/>
			<RowDefinition Height="65"/>
			<RowDefinition Height="40"/>
			<RowDefinition Height="120"/>
        </Grid.RowDefinitions>

        <!--TitlePanel 包含应用程序的名称和页标题-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Height="150" Background="#CCA05000" RenderTransformOrigin="0.5,0.5" >
        	<StackPanel.RenderTransform>
        		<CompositeTransform TranslateY="-200"/>
        	</StackPanel.RenderTransform>
        	<StackPanel.Projection>
        		<PlaneProjection/>
        	</StackPanel.Projection>
        	<TextBlock x:Name="PageTitle" Text="{StaticResource AppName}" FontFamily="Comic Sans MS" FontSize="96" Foreground="#FFFFFDFD"/>
        </StackPanel>
		<TextBlock Text="Connect to Sina..." HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="21.333"  Grid.Row="1" Margin="0,-8,0,0"/>
        <!--ContentPanel - 在此处放置其他内容-->
            <Border VerticalAlignment="Top" Background="#7F5B8EA9" CornerRadius="10" BorderThickness="5,0" Grid.Row="2" Height="210">
            	<StackPanel>
            <TextBlock   Name="tbtUserName" Text="用户名:" FontSize="21.333" Margin="18,13,0,0" FontFamily="Segoe WP" FontWeight="Bold" Foreground="White" />
            <TextBox Margin="4,-10,-4,0" x:Name="tbUserName" Text ="isogb2312@sina.cn" FontSize="29.333" Foreground="Black" Background="#BFFFFFFF" BorderThickness="0,3,3,3"   Width="470"/>
            <TextBlock HorizontalAlignment="Left" Margin="18,-3,0,0" Name="tbtPassword" Text="密码:" VerticalAlignment="Top" FontSize="21.333" d:LayoutOverrides="VerticalAlignment" Foreground="White" FontWeight="Bold" />
            <PasswordBox Height="72" HorizontalAlignment="Left" Margin="4,-11,0,0" Name="pbPassword" VerticalAlignment="Top" FontSize="29.333" BorderThickness="0" Password="123456qq." d:LayoutOverrides="VerticalAlignment" Width="470" />
			</StackPanel>
        	</Border>
			<StackPanel VerticalAlignment="Top" Grid.Row="3" Margin="0,0,12,0" Orientation="Horizontal" HorizontalAlignment="Right">
			
				<Button Content="设置" Name="btnSetting" FontSize="26" FontWeight="Bold"  Width="180" Background="#FFDE9317" VerticalAlignment="Bottom" BorderThickness="1,1,1,1" Height="75"/>
			
				<Button Content="登录"  Name="btnOAuth" FontSize="26" FontWeight="Bold"  Width="180" Background="#FFa05000" VerticalAlignment="Bottom" BorderThickness="1" Margin="0"  Click="btnOAuth_Click" Height="75" />
			</StackPanel>
		 <TextBlock Height="30" HorizontalAlignment="Center" Name="tbtStatus" Text="认证成功，正在跳转页面" VerticalAlignment="Top" Grid.Row="4" Foreground="Yellow" />
		 
		  <Border  CornerRadius="10" BorderThickness="5,0" Grid.Row="5" Background="#7F5B8EA9" Margin="0,0,0,12">
		  	<TextBlock Text="填写用户名跟密码，登录后将允许程序访问您的新浪微博的信息，包括您及您所关注好友的微博、您及您好友的个人信息等..." TextWrapping="Wrap" Margin="12,12,12,0"/>
		  </Border>
		 
    </Grid>
 
    <!--演示 ApplicationBar 用法的示例代码-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="按钮 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="按钮 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="菜单项 1"/>
                <shell:ApplicationBarMenuItem Text="菜单项 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>